<?php

namespace app\controller;

use support\Request;
use Tinywan\Storage\Storage;

class UploadController
{
    public function upload(Request $request)
    {
        $res = Storage::uploadFile();
        return json(['code'=>0,'data'=>$res[0]]);

    }

}